//
//  SectionController.m
//  iGSS
//
//  Copyright 2010 Electronic Business Systems Ltd.
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//  http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//

#import "SectionController.h"

#import "GSSObject.h"

@implementation SectionController

@synthesize editing;
@synthesize tableView;
@synthesize navigationController;

- (id)initWithObject:(GSSObject *)anObject {
    if (self = [super init]) {
        object = [anObject retain];
    }
    return self;
}

- (void)dealloc {
    [object release];
    [tableView release];
    [navigationController release];
    
    [super dealloc];
}


//MARK: -

- (NSInteger)numberOfRows {
    return 0;
}

- (UITableViewCell *)cellForRow:(NSInteger)row {
    return nil;
}

- (NSString *)titleForHeader {
    return nil;
}

- (NSString *)titleForFooter {
    return nil;
}

- (void)commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRow:(NSInteger)row {
    return;
}

//MARK: -

- (void)didSelectRow:(NSInteger)row {
    return;
}

- (CGFloat)heightForRow:(NSInteger)row {
    return self.tableView.rowHeight;
}

- (UITableViewCellEditingStyle)editingStyleForRow:(NSInteger)row {
    return UITableViewCellEditingStyleNone;
}

- (BOOL)shouldIndentWhileEditingRow:(NSInteger)row {
    return NO;
}

@end
